package com.erli.exchange.common.sg.mapper;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;

import com.erli.exchange.core.util.JAXBUtil;

import lombok.Setter;

//<sql id="BASE_COLUMN">
//id,database_name,database_remark,create_time,update_time,create_user_id,update_user_id
//</sql>

@Setter
@XmlRootElement(name="sql")
public class SQL {
	
	@XmlAttribute
	private String id;
	
	@XmlValue
	private String value;
	
	public static void main(String[] args) throws Exception {
		SQL sql = new SQL();
		sql.setId("BASE_COLUMN");
		sql.setValue("id,database_name,database_remark,create_time,update_time,create_user_id,update_user_id");
		System.out.println(JAXBUtil.toXML(sql));
	}
	
}
